import request from '@/utils/request'

export function roleList(){
  return request({
      url:'/role/list',
      method:'get'
  })
}

export function roleAdd(data){
    return request({
        url:'/role/add',
        method:'post',
        data
    })
}

export function roleEdit(data){
    return request({
        url:'/role/edit',
        method:'post',
        data
    })
}

export function roleDelete(data){
    return request({
        url:'/role/delete',
        method:'post',
        data
    })
}

export function roleSelect(data){
    return request({
        url:'/role/select',
        method:'post',
        data
    })
}
